<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 400px;
            height: 200px;
        }
         /* 隐藏  display:none;  不占原来的空间，但结构还在页面中*/
        /* display:none; */

        /* 隐藏  visibility: hidden;;  占原来的空间，但结构还在页面中*/
        /* visibility: hidden; */
        .item1{
            background-color: aqua;
            /* display:none; */
            visibility: hidden;

        }
        .item2{
            background-color: skyblue;
        }
    </style>
</head>
<body>
    <div class="box item1"></div>
    <div class="box item2"></div>
</body>
</html>